Skip to content

benchmark: remove unused parameters#14640

Closed
nishijayaraj wants to merge 1 commit into
nodejs:masterfrom
nishijayaraj:my-branch
Closed

benchmark: remove unused parameters#14640
nishijayaraj wants to merge 1 commit into
nodejs:masterfrom
nishijayaraj:my-branch

Conversation

@nishijayaraj

Copy link
Copy Markdown
Contributor

Functions onOnline and onMessage in benchmark/cluster/echo.js
had unused parameters. They were removed.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

Functions onOnline and onMessage in benchmark/cluster/echo.js
had unused parameters. They were removed.
@nodejs-github-bot nodejs-github-bot added benchmark Issues and PRs related to the benchmark subsystem. cluster Issues and PRs related to the cluster subsystem. labels Aug 5, 2017
@refack

refack commented Aug 5, 2017

Copy link
Copy Markdown
Contributor

So even in TF&I having the callback's signature match the call is a little bit more performant, so for function onOnline(msg) onMessage IMHO the formal argument should stay, but renamed (my preference is _ , but I yield to the OP's).
Ref: #14137

@lpinca lpinca left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The little performance diff does not affect benchmark results.

@Trott

Trott commented Aug 8, 2017

Copy link
Copy Markdown
Member

jasnell pushed a commit that referenced this pull request Aug 8, 2017
Functions onOnline and onMessage in benchmark/cluster/echo.js
had unused parameters. They were removed.

PR-URL: #14640
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@jasnell

jasnell commented Aug 8, 2017

Copy link
Copy Markdown
Member

Landed in e67220e

@jasnell jasnell closed this Aug 8, 2017
addaleax pushed a commit that referenced this pull request Aug 10, 2017
Functions onOnline and onMessage in benchmark/cluster/echo.js
had unused parameters. They were removed.

PR-URL: #14640
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@addaleax addaleax mentioned this pull request Aug 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

benchmark Issues and PRs related to the benchmark subsystem. cluster Issues and PRs related to the cluster subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants